﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;

namespace ExtrudeGalaxy3d
{
    class TelaCreditos
    {
        Texture2D curso;
        MenuItem voltar;
        SpriteFont fonte;
        MouseState mouse;

        public TelaCreditos(Game1 g)
        {
            fonte = g.Content.Load<SpriteFont>("fonte");
            voltar = new MenuItem(g, "", 100, 400, 68, 42);
            curso = g.Content.Load<Texture2D>("");

         }


        public void Update(GameTime gameTime, MouseState m)
        {
            if (voltar.Clicou(m))
                TelasdoJogo.status = TelasdoJogo.TelaJogo.TELA_VOLTAR;
            mouse = m;
        }


        public void Draw(GameTime gameTimE, SpriteBatch tela)
        {
            tela.DrawString(fonte, "Desenvolvedores", new Vector2(280, 50), Color.Red); //Desenha texto na tela
            voltar.DesenhaNaTela(tela);
            tela.Draw(curso, new Rectangle(mouse.X - 25, mouse.Y - 25, 100, 57), Color.White);// Curso
        }


    }
}
